@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  font-weight: 400;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 调整锚点偏移，避免被固定导航栏遮挡 */
section[id] {
  scroll-margin-top: 80px;
}

/* 富文本编辑器内容样式 */
.prose {
  /* 文档链接样式 */
  & div[style*="border: 1px solid #ddd"] {
    @apply hover:bg-blue-50 hover:border-blue-300 transition-colors duration-200;
  }
  
  /* 文档链接内的链接样式 */
  & div[style*="border: 1px solid #ddd"] a {
    @apply hover:text-blue-700 font-medium;
  }
  
  /* 文档图标样式 */
  & .fa-file-pdf {
    @apply text-red-600;
  }
  
  & .fa-file-word {
    @apply text-blue-600;
  }
  
  & .fa-file-excel {
    @apply text-green-600;
  }
  
  & .fa-file-powerpoint {
    @apply text-orange-600;
  }
}